/*
 * @Author: 0x9DEFA478
 * @Date: 2021-07-31 16:15:54
 * @LastEditTime: 2021-09-29 14:51:38
 * @LastEditors: 0x9DEFA478
 * @Description: 
 * QQ:2652450237
 * ============================================================================================================================================
 * 
 * 
 * 
 *                                                                                               ************      ****************************
 *                                                                                             ************      ****************************  
 *                                                                                           ************      ****************************    
 *                                                                                         ************      ****************************      
 *                                                                                       ************      ************                        
 *                                                                                     ************      ************                          
 *                                                                                   ************      ************                            
 *                                                                                 ************      ************                              
 *                                                                               ************      ************                                
 *                                                                             ************      ************                                  
 *                                                                           ************      ************                                    
 *                                                                         ************      ************                                      
 *                                                                       ************      ************                                        
 *                                                                     ************      ************                                          
 *                                                                   ************      ************                                            
 *                                                                 ************      ************                                              
 *                                                               ************      ************                                                
 *                                                             ************      ************                                                  
 *                                                           ************      ************                                                    
 *                                                         ************      ************                                                      
 *                                                       ************      ************                                                        
 *                                                     ************      ************                                                          
 *                                                   ************      ************                                                            
 *                                                 ************      ************                                                              
 *                                               ************      ************                                                                
 *                                             ************      ************                                                                  
 *                                           ************      ************                                                                    
 *                                         ************      ************                                                                      
 *                                       ************      ************                                                                        
 *                                     ************      ************                                                                          
 *                                   ************      ************                                                                            
 *                                 ************      ************                                                                              
 *                               ************      ************                                                                                
 *                             ************      ************                                                                                  
 *                           ************      ************                                                                                    
 *                         ************      ************                                                                                      
 *       ****************************      ************                                                                                        
 *     ****************************      ************                                                                                          
 *   ****************************      ************                                                                                            
 * ****************************      ************                                                                                              
 * 
 * 
 * 
 * ============================================================================================================================================
 * 
 */
#include "I_Font.h"
#include "MemoryMalloc.h"


extern const unsigned char FontTable_ASCII_Fixsys[];
extern const unsigned char FontTable_ASCII_H[];
extern const unsigned char FontTable_LLib_Song[];

H_Font* Font_ASCII_Fixsys=NULL;
H_Font* Font_ASCII_H=NULL;
H_Font* Font_LLib_Song=NULL;



/**
 * @brief 字库初始化
 * @return 无
 */
void I_Font_Init(){
  int r;

  Font_ASCII_Fixsys=MemoryMalloc_Malloc(sizeof(H_Font));
  if (Font_ASCII_Fixsys==NULL){
    while(1){
    }
  }

  Font_ASCII_H=MemoryMalloc_Malloc(sizeof(H_Font));
  if (Font_ASCII_H==NULL){
    while(1){
    }
  }

  Font_LLib_Song=MemoryMalloc_Malloc(sizeof(H_Font));
  if (Font_ASCII_H==NULL){
    while(1){
    }
  }

  r=H_Font_Init(Font_ASCII_Fixsys,(void*)FontTable_ASCII_Fixsys,vH_Font_Type_Ascii);
  while(r!=0){
  }

  r=H_Font_Init(Font_ASCII_H,(void*)FontTable_ASCII_H,vH_Font_Type_Ascii);
  while(r!=0){
  }

  r=H_Font_Init(Font_LLib_Song,(void*)FontTable_LLib_Song,vH_Font_Type_LLib);
  while(r!=0){
  }
  Font_LLib_Song->AsciiFont=Font_ASCII_Fixsys;

}







